﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tema
{
    class CarCoupe : AbstractCar
    {
        private bool _convertible;
        private int _doorNo;
        private string _fuelType;

        ///<summary>
        ///Sets the special characteristics for a Mini car
        ///<para>param name="characteristic1": (bool) Convertible or not</para>
        ///<para>param name="characteristic2": (int) Number of Doors</para>
        ///<para>param name="characteristic3": (string) Fuel diesel or gasoline</para>
        ///</summary>
        public override void setCharacteristics(string characteristic1, string characteristic2, string characteristic3)
        {
            try
            {
                _convertible = bool.Parse(characteristic1);
                _doorNo = int.Parse(characteristic2);
                _fuelType = characteristic3;
            }
            catch (Exception e)
            {
                Console.WriteLine("Invalid " + GetType().Name + " special characteristic initialiation: " + e.Message);
            }
        }

        public override string getCharacteristic1()
        {
            return _convertible + "";
        }

        public override string getCharacteristic2()
        {
            return _doorNo + "";
        }

        public override string getCharacteristic3()
        {
            return _fuelType;
        }

        public override void printCharacteristics()
        {
            Console.WriteLine("\tCharacteristics:\n\t\tConvertible: " + getCharacteristic1() + " Door number: " + getCharacteristic2() + " Fuel Type: " + getCharacteristic3());
        }
    }
}
